import pandas as pd

# 生成示例数据
data = {
    '日期': pd.date_range(start='2023-01-01', periods=30, freq='D'),
    '销售额': [10000 + i*200 for i in range(30)],
    '销量': [100 + i*3 for i in range(30)],
    '客单价': [10000 / 100 + i*0.5 for i in range(30)]
}

df = pd.DataFrame(data)
df.to_csv('sales_data.csv', index=False, encoding='utf-8')